Component({
  data: {
    selected: 0 ,
    color: "#7A7E83",
    selectedColor: "#3cc51f",
    list: [{
      "pagePath": "pages/home1/home1",
      "text": "home1",
      "iconPath": "/tabs/home.png",
      "selectedIconPath": "/tabs/home-active.png"
  
    },
    {
      "pagePath": "pages/home2/home2",
      "text": "hoe2",
      "iconPath": "/tabs/orders.png",
      "selectedIconPath": "/tabs/orders-active.png"
    },
    {
      "pagePath": "pages/home3/home3",
      "text": "home3",
      "iconPath": "/tabs/contact.png",
      "selectedIconPath": "/tabs/contact-active.png"
    }
  ]
  },
  attached() {
  },
  methods: {
    switchTab(e) {
     
      wx.switchTab({url:"/"+e.currentTarget.dataset.path})
    }
  }
})